[log] Add debug logging to CLI gateway, interactive, and trial repository functions#13219
Closed
github-actions[bot] wants to merge 1 commit intomainfrom
Closed
[log] Add debug logging to CLI gateway, interactive, and trial repository functions#13219github-actions[bot] wants to merge 1 commit intomainfrom
github-actions[bot] wants to merge 1 commit intomainfrom
Conversation
Enhanced 3 Go files with meaningful debug logging statements: - gateway_logs.go: Added logging to log processing and metrics functions - interactive.go: Added logging to workflow creation prompts - trial_repository.go: Added logging to repository management functions Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhanced 3 Go files in the
pkg/cli/directory with meaningful debug logging statements to improve troubleshooting and development workflow visibility.Changes
pkg/cli/gateway_logs.go (613 lines)
processGatewayLogEntry()- logs event processing details (event type, server, tool)calculateGatewayAggregates()- logs aggregate calculation for serversextractMCPToolUsageData()- logs MCP tool usage data extraction from log directorydisplayAggregatedGatewayMetrics()- logs aggregation process across multiple runspkg/cli/interactive.go (510 lines)
promptForWorkflowName()- logs when prompting user for workflow namepromptForConfiguration()- logs when prompting for workflow configurationgenerateWorkflowContent()- logs workflow content generation with engine, tools, and outputspkg/cli/trial_repository.go (473 lines)
cleanupTrialRepository()- logs trial repository cleanup operationscloneTrialHostRepository()- logs trial host repository cloningValidation
make build- No compilation errorsmake test-unit- All tests passedImpact
These logging additions follow the project's logging guidelines from AGENTS.md:
gatewayLogsLog,interactiveLog,trialRepoLog)The enhanced logging will help developers and users troubleshoot:
🤖 Generated with [Claude Code]((claude.com/redacted)